class ImageResultModel {
  late int code;
  late String message;
  late Content content;

  ImageResultModel(
      {required this.code, required this.message, required this.content});

  ImageResultModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    content = (json['content'] != null
        ? new Content.fromJson(json['content'])
        : null)!;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.content != null) {
      data['content'] = this.content.toJson();
    }
    return data;
  }
}

class Content {
  late int total;
  late int page;
  late int perPage;
  late Data data;

  Content(
      {required this.total,
      required this.page,
      required this.perPage,
      required this.data});

  Content.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    page = json['page'];
    perPage = json['per_page'];
    data = (json['data'] != null ? new Data.fromJson(json['data']) : null)!;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = this.total;
    data['page'] = this.page;
    data['per_page'] = this.perPage;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class Data {
  late String name;
  late String path;
  late String type;
  late String size;
  late String notes;
  late String status;
  late String createTime;
  late int id;

  Data(
      {required this.name,
      required this.path,
      required this.type,
      required this.size,
      required this.notes,
      required this.status,
      required this.createTime,
      required this.id});

  Data.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    path = json['path'];
    type = json['type'];
    size = json['size'];
    notes = json['notes'];
    status = json['status'];
    createTime = json['create_time'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['path'] = this.path;
    data['type'] = this.type;
    data['size'] = this.size;
    data['notes'] = this.notes;
    data['status'] = this.status;
    data['create_time'] = this.createTime;
    data['id'] = this.id;
    return data;
  }
}
